home *** CD-ROM | disk | FTP | other *** search
/ Computer Inter@ctive 17 / Computer Interactive cdrom 17 - gen 99.iso / ZDNETIT / CONTENT / OSFAX.ZIP / REGISTR.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-08-26  |  2.5 KB  |  67 lines

  1. Echo off
  2. REM *********************************************************************/
  3. REM                                                                     */
  4. REM   SYSTEM       : HQ-FAX, FAXHAVEN                                   */
  5. REM   COPYRIGHT    : (c) 1998 HTF CONSULTING                            */
  6. REM                                                                     */
  7. REM *********************************************************************/
  8. REM                                                                     */
  9. REM   BAT file name: REGISTR.bat                                        */
  10. REM   DESCRIPTION  : Here's the Canned Batch file for Registration      */
  11. REM                  HQ-FAX or FAXHAVEN or ordering whatever else       */
  12. REM                  Parameters are: %1 = XX as in XXSend.bat           */
  13. REM                                  %2 = Phone number                  */
  14. REM                                  %3 = Possibly a scheduled time     */
  15. REM                                                                     */
  16. REM *********************************************************************/
  17. REM
  18. CLS
  19. ECHO Thank you for your registration/order.
  20. ECHO Automated Registration process underway!
  21. Echo ****************************************
  22. REM
  23. IF %1 == AD goto DO_AP
  24. IF %1 == C1 goto DO_AP
  25. IF %1 == CA goto DO_AP
  26. IF %1 == C2 goto DO_AP
  27. IF %1 == IN goto DO_AP
  28. PCL2FAX3.exe REGFORM.TXT REGFORM /FH%1 /RV~
  29. goto Regsend
  30.  
  31. :DO_AP
  32. REM
  33. PCL2FAX3.exe REGFORM.TXT REGFORM /FHAP /RV~
  34. if not errorlevel 2 goto Regsend
  35.  
  36. Echo *
  37. Echo ERROR !!! Building the Regform FAX file did not complete.
  38. Echo ERROR !!! Probable cause is too little conventional memory.
  39. Echo *
  40. pause
  41. goto quit
  42.  
  43. :Regsend
  44. Echo Call %1Send.bat 2 REGFORM %2 %3 %4
  45.  
  46. Call %1Send.bat 2 REGFORM %2 %3 %4
  47. REM
  48. Echo ****************************************
  49. Echo Verify that the FAX transmission completed successfully, and then ...
  50. pause
  51.  
  52. REM Clean up
  53. IF %1 == AD If exist REGFORM.APF  Erase REGFORM.APF
  54. IF %1 == C1 If exist REGFORM.APF  Erase REGFORM.APF
  55. IF %1 == CA If exist REGFORM.APF  Erase REGFORM.APF
  56. IF %1 == C2 If exist REGFORM.APF  Erase REGFORM.APF
  57. IF %1 == IN If exist REGFORM.APF  Erase REGFORM.APF
  58. :
  59. IF %1 == BF If exist REGFORM.BFX  Erase REGFORM.BFX
  60. IF %1 == CP If exist REGFORM.001  Erase REGFORM.001
  61. IF %1 == FR If exist REGFORM.FAX  Erase REGFORM.FAX
  62. IF %1 == QL If exist REGFORM.QFX  Erase REGFORM.QFX
  63. IF %1 == XX If exist REGFORM.TIF  Erase REGFORM.TIF
  64.  
  65. :quit
  66. Echo on
  67.